﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="CreatePkgdef" xmlns="http://schemas.microsoft.com/pag/gax-core"
                               xmlns:xi="http://www.w3.org/2001/XInclude" Bound="false">
  <xi:include href="../Common/CommonTypeAliases.xml"
				xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Types)" />
  <Caption>Create pkgdef file</Caption>
  <Description>Create pkgdef file</Description>
  <HostData>
    <Icon File="Resources\Pkgdef.ico" />
    <CommandBar Menu="VSShellAssistProject"/>
  </HostData>
  <Arguments>
    <xi:include href="../Common/CommonArguments.xml"
					  xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Arguments/gax:Argument)" />
    <Argument Name="VSPackageProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Assets.ValueProviders.VisualStudio.CurrentlySelectedProjectValueProvider, VSSDKAssist.Assets"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="VSPackageCodeClass" Type="EnvDTE.CodeClass, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSShellAssist.Recipes.Common.ValueProviders.VSPackageCodeClassValueProvider, VSSHellAssist"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="VSPackageClassType" Type="System.Type" Required="true">
      <ValueProvider Type="VSShellAssist.Recipes.Common.ValueProviders.VSPackageTypeValueProvider, VSSHellAssist"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="RegistrationMethod" Type="Microsoft.VisualStudio.Shell.RegistrationMethod, Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSShellAssist.Recipes.Common.ValueProviders.DefaultRegistrationMethodValueProvider, VSSHellAssist"
               Stage="OnBeginRecipe"/>
    </Argument>
  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page Type="VSShellAssist.Recipes.CreatePkgdef.CreatePkgdefCP, VSShellAssist"
          Height="200" Width="510">
          <Title>Specify deployment general properties</Title>
          <LinkTitle>Deployment general properties</LinkTitle>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="VSShellAssist.Recipes.Common.Coordinators.ExecutionProgressCoordinator, VSShellAssist">
    <!--Compile project-->
    <Action Name="CompileProject"
          Type="VSSDKAssist.Assets.Actions.VisualStudio.CompileProjectAction, VSSDKAssist.Assets"
          StatusMessage="Compiling project"
          WriteMessageToOutputWindow="true">
      <Input Name="Project" RecipeArgument="VSPackageProject"/>
    </Action>
    <!-- Create pkgdef file -->
    <Action Name="CreatePkgdef"
              Type="VSShellAssist.Recipes.CreatePkgdef.CreatePkgdefAction, VSSHellAssist"
              StatusMessage="Creating pkgdef file"
              WriteMessageToOutputWindow="true">
      <Input Name="Project" RecipeArgument="VSPackageProject" />
      <Input Name="CodeClass" RecipeArgument="VSPackageCodeClass" />
      <Input Name="ClassType" RecipeArgument="VSPackageClassType" />      
      <Input Name="RegistrationMethod" RecipeArgument="RegistrationMethod" />
    </Action>
  </Actions>
</Recipe>